#include "stdafx.h"

#include "NetworkManager.h"

NetworkManager::NetworkManager()
{
  InitializeThreadpoolEnvironment(&mTpEnv);
  SetThreadpoolCallbackPool(&mTpEnv, mTp);

  WSADATA wsaData;
  WSAStartup( MAKEWORD(2,2), &wsaData );
}

NetworkManager::~NetworkManager()
{
  CloseThreadpool(mTp);
  DestroyThreadpoolEnvironment(&mTpEnv);

  WSACleanup();
}
